import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import zhuti from './components/zhuti.vue'
import xinwen from './components/xinwen.vue'
import tiyu from './components/tiyu.vue'
import zhuye from './components/child/zhuye.vue'
import guonei from './components/child/guonei.vue'
import waiguo from './components/child/waiguo.vue'
Vue.use(VueRouter)
const routes = [
  { path: '/', redirect: "/zhuti" },
  { path: '/zhuti', component: zhuti },
  { path: '/xinwen', component: xinwen },
  {
    path: '/tiyu', component: tiyu,

    children: [
      { path: '/zhuye', component: zhuye },
      { path: '/guonei', component: guonei },
      { path: '/waiguo', component: waiguo }
    ]

  }
]
Vue.config.productionTip = false
const router = new VueRouter({
  routes
})
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
